<?php

namespace Trois\Lib;

trait HandleMessage
{
    private string $error = '';

    private array $success = [];

    /**
     * @return string
     */
    public function getError(): string
    {
        return $this->error;
    }

    /**
     * @param string $error
     */
    public function setError(string $error): void
    {
        $this->error = $error;
    }

    /**
     * @return array
     */
    public function getSuccess(): array
    {
        return $this->success;
    }

    /**
     * @param array $success
     */
    public function setSuccess(array $success): void
    {
        $this->success = $success;
    }


}